-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Consolidate tests to avoid excessive deployERC1155Contract #5135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5135 +/- ##
=======================================
Coverage 45.45% 45.45%
=======================================
Files 1065 1065
Lines 55122 55122
Branches 3975 3973 -2
=======================================
Hits 25054 25054
Misses 29376 29376
Partials 692 692
*This pull request uses carry forward flags. Click here to find out more. |
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR primarily focuses on refactoring and enhancing the test coverage for the `erc1155` extension of the `thirdweb` package. It removes outdated tests, introduces new tests, and updates existing ones to improve functionality verification.
### Detailed summary
- Removed multiple test files related to `erc1155` functions.
- Updated `lazyMint.test.ts` to use `DROP1155_CONTRACT`.
- Added a test for `isGetNFTsSupported` in `drop1155.test.ts`.
- Simplified and enhanced tests in `mintAdditionalSupplyToBatch.test.ts`.
- Introduced new tests for `updateTokenURI`, minting, and `getOwnedTokenIds` in `token1155.test.ts`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
2110f3c to
71aa257
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR primarily focuses on updating the test cases for the
erc1155extension in thethirdwebpackage. It removes obsolete tests, adds new functionality tests, and modifies existing tests to improve coverage and accuracy for minting and NFT retrieval functionalities.Detailed summary
erc1155functions.lazyMint.test.tsto useDROP1155_CONTRACT.isGetNFTsSupportedindrop1155.test.tsandtoken1155.test.ts.mintAdditionalSupplyToBatch.test.tsfor clarity and correctness.updateTokenURIand multi-token minting intoken1155.test.ts.token1155.test.ts.